Integrand size = 10, antiderivative size = 11 \[ \int \frac {\tan (x)}{\sec (x)+\tan (x)} \, dx=x+\frac {\cos (x)}{1+\sin (x)} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {4476, 2814, 2727} \[ \int \frac {\tan (x)}{\sec (x)+\tan (x)} \, dx=x+\frac {\cos (x)}{\sin (x)+1} \]
[In]
[Out]
Rule 2727
Rule 2814
Rule 4476
Rubi steps \begin{align*} \text {integral}& = \int \frac {\sin (x)}{1+\sin (x)} \, dx \\ & = x-\int \frac {1}{1+\sin (x)} \, dx \\ & = x+\frac {\cos (x)}{1+\sin (x)} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(25\) vs. \(2(11)=22\).
Time = 0.07 (sec) , antiderivative size = 25, normalized size of antiderivative = 2.27 \[ \int \frac {\tan (x)}{\sec (x)+\tan (x)} \, dx=x-\frac {2 \sin \left (\frac {x}{2}\right )}{\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.23 (sec) , antiderivative size = 15, normalized size of antiderivative = 1.36
method | result | size |
risch | \(x +\frac {2}{i+{\mathrm e}^{i x}}\) | \(15\) |
default | \(\frac {2}{\tan \left (\frac {x}{2}\right )+1}+2 \arctan \left (\tan \left (\frac {x}{2}\right )\right )\) | \(19\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 24 vs. \(2 (11) = 22\).
Time = 0.25 (sec) , antiderivative size = 24, normalized size of antiderivative = 2.18 \[ \int \frac {\tan (x)}{\sec (x)+\tan (x)} \, dx=\frac {{\left (x + 1\right )} \cos \left (x\right ) + {\left (x - 1\right )} \sin \left (x\right ) + x + 1}{\cos \left (x\right ) + \sin \left (x\right ) + 1} \]
[In]
[Out]
\[ \int \frac {\tan (x)}{\sec (x)+\tan (x)} \, dx=\int \frac {\tan {\left (x \right )}}{\tan {\left (x \right )} + \sec {\left (x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 28 vs. \(2 (11) = 22\).
Time = 0.29 (sec) , antiderivative size = 28, normalized size of antiderivative = 2.55 \[ \int \frac {\tan (x)}{\sec (x)+\tan (x)} \, dx=\frac {2}{\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1} + 1} + 2 \, \arctan \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.09 \[ \int \frac {\tan (x)}{\sec (x)+\tan (x)} \, dx=x + \frac {2}{\tan \left (\frac {1}{2} \, x\right ) + 1} \]
[In]
[Out]
Time = 22.61 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.09 \[ \int \frac {\tan (x)}{\sec (x)+\tan (x)} \, dx=x+\frac {2}{\mathrm {tan}\left (\frac {x}{2}\right )+1} \]
[In]
[Out]